<?php
use think\Model;
use think\Db;
use my\JoDES;
function des_decode1($str){
    $des=JoDES::share();
    $de = $des->decode($str,"xmcx0551");
    if(empty($de)|| $de === false){
        return array('status'=>0,'msg'=>'解析失败');
    }
    $de = urldecode($de);
    return $de;
    $de_arr = explode("&",$de);//array("a=1","b=2","c=3")
    foreach($de_arr as $v){
        $val=explode("=",$v);
        $data[$val[0]]=$val[1];
    }
    return array('status'=>1,'data'=>$data);
}